 %{--页尾--}%
    <div class="foot_d">
        <div><p><span>&copy; 2015  图藏文化 99tucang.com</span>
            <span style="float:right;margin-right: 50px;">
                <a href="http://115.28.72.130/school/?page_id=33" target="_blank">
                <button type="button" class="btn btn-default btn-xs">
                    <span class="glyphicon glyphicon-bell" aria-hidden="true"></span> 市场黑名单
                </button></a>
            </span></p></div>
    </div>
%{--/页尾--}%

<!--上传作品
<script type="text/javascript" src="${resource(dir:'/photobox',file:'pop_uploadBtn.js')}"></script>
上传作品-->

%{--登录弹出框--}%
    <div id="LoginBox">
        <div class="loginqu1">
            登录<a href="javascript:void(0)" title="关闭窗口" class="close_btn" id="closeBtn">×</a>
        </div>
        <div class="loginqu">
            <label>用户名/邮箱:</label> <span class="inputBox">
            <input type="text" id="txtName" placeholder="账号/邮箱" />
        </span><a href="javascript:void(0)" title="提示" class="warning" id="warn">*</a>
        </div>
        <div class="kong_20"></div>
        <div class="loginqu">
            <label>密&nbsp;&nbsp;&nbsp;&nbsp;码:</label>
            <span class="inputBox"><input type="password" id="txtPwd" placeholder="密码" /></span>
            <a href="javascript:void(0)" title="提示" class="warning" id="warn2">*</a>
        </div>
        <div class="kong_5"></div>
        <div class="loginqu" style="height: 20px;">
            <label style="height: 20px;">&nbsp;</label>
            <span class="inputBox" id="message"style="color:red; font-size: 14px; line-height: 20px; border: none; "></span>
        </div>
        <div class="kong_5"></div>
        <div class="loginqu mBo_10">
            <label><input type="checkbox" value="下次自动登录" class="fu_btn" width="20" height="20"/></label> <span class="fu_con">下次自动登录</span>
        </div>
        <div class="loginqu">
            <a href="#" id="loginbtn">登录</a>
            <a href="${createLink(controller: 'member',action: 'forgetPwd')}" id="forgetPwd">忘记密码？</a>
        </div>
    </div>
    <script type="text/javascript" src="${resource(dir:'/photobox',file:'pop_login.js')}"></script>

    <script>
        $("#loginbtn").on('click', function () {

            var txtName = $("#txtName").val();
            var txtPwd = $("#txtPwd").val();
            if (txtName == "" || txtName == undefined || txtName == null) {
                if (txtPwd == "" || txtPwd == undefined || txtPwd == null) {
                     $(".warning").css({ display: 'block' });
                }
                else {
                    $("#warn").css({ display: 'block' });
                    $("#warn2").css({ display: 'none' });
                }
            }
            else {
                if (txtPwd == "" || txtPwd == undefined || txtPwd == null) {
                    $("#warn").css({ display: 'none' });
                    $(".warn2").css({ display: 'block' });
                }
                else {
                    $(".warning").css({ display: 'none' });
                }
            }
            $.ajax({
                url: "${domain_name}member/login", //用于登录验证的服务器端请求地址
                type: 'POST',
                data:{username:txtName, password:txtPwd},
                dataType: 'json',
                timeout: 1000,
                error: function(){
                    $("#message").html('登录失败');
                },
                success: function(result){
                    if(result.message!=null){
                        $("#message").html(result.message);
                    }
                    if(result.status==1){
                        $("#message").html("");
                        $("#loginbtn").html("登录中");
                        window.location.reload()
                    }
                }

            });
        });

        $(function(){
            $('#_popul').click(function(){
                if(!'${session.userId}'){
                    sAlert("您还没有登录，请登录！");
                    $(document).scrollTop(0);
                    //$(this).fadeOut();
                }else if('${session.isiPhotographer}'=="0"){
                    sAlert("对不起，你目前还不是摄影师或者您的申请还未通过审核，暂时不能使用“发表作品”功能");
                }else{
                    window.location.href="/photobox/photo/add"
                }
            });
        });
    </script>
%{--/登录弹出框--}%
</body>

</html>